// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.neuronbit.businessflow.intellij.editor.swing.editor;

import com.mxgraph.model.mxCell;
import com.neuronbit.businessflow.intellij.editor.swing.XmlWriter;
import org.apache.commons.lang3.NotImplementedException;
import org.jetbrains.annotations.NotNull;

/**
 * The type Rad atomic component.
 */
public class RadAtomicComponent extends RadComponent {
    /**
     * Instantiates a new Rad atomic component.
     *
     * @param module the module
     * @param cell   the cell
     * @param id     the id
     */
    public RadAtomicComponent(final ModuleProvider module, final mxCell cell, final String id){
    super(module, cell, id);
  }

    /**
     * Instantiates a new Rad atomic component.
     *
     * @param cell    the cell
     * @param id      the id
     * @param palette the palette
     */
    public RadAtomicComponent(@NotNull final mxCell cell, @NotNull final String id, final Palette palette) {
    super(null, cell, id, palette);
  }

  @Override
  public void write(final XmlWriter writer) {
    throw new NotImplementedException();
//    writer.startElement("component");
//    try{
//      writeId(writer);
//      writeClass(writer);
//      writeBinding(writer);
//      writeConstraints(writer);
//      writeProperties(writer);
//    }finally{
//      writer.endElement(); // component
//    }
  }
}
